#import <UIKit/UIKit.h>
#import <MessageUI/MessageUI.h>
#import <MessageUI/MFMailComposeViewController.h>
#import "UMSocialControllerService.h"
#import "BaseUIViewController.h"
#import "SynthesizeSingleton.h"
#import "ShareModel.h"

@protocol ShareManagerDelegate;

@interface ShareManager : NSObject <UMSocialDataDelegate,UMSocialUIDelegate,MFMessageComposeViewControllerDelegate>
{
    UMSocialControllerService                   *socialController;
    UMSocialData                                *socialData;
    UMSocialSnsType                             sharetypeName; //枚举类型
    BaseUIViewController<ShareManagerDelegate>     *mOwner;
    NSString                                    *mPlatform;
}

SYNTHESIZE_SINGLETON_FOR_CLASS_HEADER(ShareManager);

-(void)weixinShare:(BaseUIViewController<ShareManagerDelegate>*)owner;
-(void)weixinFriends:(BaseUIViewController<ShareManagerDelegate>*)owner;
-(void)sinaWeibo:(BaseUIViewController<ShareManagerDelegate>*)owner;
-(void)tencentWeibo:(BaseUIViewController<ShareManagerDelegate>*)owner;
-(void)douban:(BaseUIViewController<ShareManagerDelegate>*)owner;
-(void)renren:(BaseUIViewController<ShareManagerDelegate>*)owner;
-(void)qzone:(BaseUIViewController<ShareManagerDelegate>*)owner;
-(void)smsMessage:(BaseUIViewController<ShareManagerDelegate>*)owner;
-(void)copy:(NSString *)textToCopy;

@end

@protocol ShareManagerDelegate <NSObject>

@optional
- (ShareModel*)SMDdata;

@end